package com.lyne.test.rabbit;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author lyne
 */
@Data
@Document("newColl")
@AllArgsConstructor
@NoArgsConstructor
public class User {


    @Id
    private Integer id;
    private String name;
    private Date data;
    private State state;

    public User(Integer id, String name, Date data) {
        this.id = id;
        this.name = name;
        this.data = data;
    }
}
